import HTTP from '../../../../utils/http.js';
import { API, API_GENERATE } from '../../../../config/api.js';
class CreditService {
	//授信账单详情
	billDetail (params = {}) {
		return HTTP.POST(API_GENERATE(API.CREDIT_BILL_CREATE), params);
	}
	//授信账单列表
	billList (params = {}) {
		return HTTP.POST(API_GENERATE(API.CREDIT_BILL_LIST), params);
	}
	//授信占用列表-采购销售
	oyList (params = {}) {
		return HTTP.POST(API_GENERATE(API.OY_LIST), params);
	}
	//授信占用列表-头部数据
	oyListHead (params = {}) {
		return HTTP.POST(API_GENERATE(API.OY_LIST_HEAD), params);
	}
	//授信占用列表-头部数据 - 未核统计
	oyListHeadNot (params = {}) {
		return HTTP.POST(API_GENERATE(API.OY_LIST_HEAD_NOT), params);
	}
	//授信占用列表-未合统计
	oyNotList (params = {}) {
		return HTTP.POST(API_GENERATE(API.OY_LIST_NOT), params);
	}
	//授信占用详情
	oyDetailData (params = {}) {
		return HTTP.POST(API_GENERATE(API.OY_LIST_NOT), params);
	}
	//授信占用-状态改变
	oyTypeChange (params = {}) {
		return HTTP.POST(API_GENERATE(API.OY_DETAILS_STEP), params);
	}
}
module.exports = new CreditService();